Hook for handling WaaS fee options for gas payments
Parameter | Type | Description |
---|---|---|
skipFeeBalanceCheck | boolean | Whether to skip checking token balances (default: false ) |
UseWaasFeeOptionsReturnType
WaasFeeOptionConfirmation | undefined
Object containing the current fee confirmation details if a transaction is pending, or undefined
if no transaction is pending confirmation.
skipFeeBalanceCheck
is false
, the options will be of type FeeOptionExtended
, which includes balance information:
(id: string, feeTokenAddress: string | null) => void
Function to confirm the selected fee option.
Parameter | Type | Description |
---|---|---|
id | string | The fee confirmation ID |
feeTokenAddress | string | null | The address of the token to use for fee payment (use null for native token) |
(id: string) => void
Function to reject the current fee option selection.
Parameter | Type | Description |
---|---|---|
id | string | The fee confirmation ID to reject |
skipFeeBalanceCheck
is true
)